package com.example.demo.module.log;


import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * weidu User Bean
 */
@Data
@ToString
@NoArgsConstructor
public class LogBean implements Serializable {

	private static final long serialVersionUID = -8204089874642600329L;

	private String id;

	private String userId;

    private String method;

    private String ip;

	private String params;

	private String url;

	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

	public LogBean(String id, String userId, String method, String ip,String url, String params) {
		this.id = id;
		this.userId = userId;
		this.method = method;
		this.ip = ip;
		this.url = url;
		this.params = params;
	}
}
